<script setup lang="ts">
const { safeAreaInsets } = uni.getSystemInfoSync()
</script>

<template>
  <view class="title" :style="{ paddingTop: safeAreaInsets?.top + 'px' }">
    <view>
      <image class="logo-image" src="@/static/images/logo.png" />
      <text class="logo-text">演员 . 歌手</text>
    </view>
    <view class="search">
      <text class="icon-search">搜索</text>
      <text class="icon-scan"></text>
    </view>
  </view>
</template>

<style lang="scss" scoped>
.title {
  background-color: rgb(250, 127, 146);
  padding: 10rpx;
  color: #fff;
  .logo-image {
    width: 230rpx;
    height: 73rpx;
    position: relative;
    top: 10rpx;
  }
  .logo-text {
    flex: 1;
    line-height: 28rpx;
    color: #fff;
    margin: 2rpx 0 0 20rpx;
    padding-left: 20rpx;
    border-left: 1rpx solid #fff;
    font-size: 26rpx;
  }
  .search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10rpx 0 26rpx;
    height: 64rpx;
    margin: 16rpx 0rpx;
    color: #fff;
    font-size: 28rpx;
    border-radius: 32rpx;
    background-color: rgba(255, 255, 255, 0.5);
  }
  .icon-search {
    &::before {
      margin-right: 10rpx;
    }
  }
  .icon-scan {
    font-size: 30rpx;
    padding: 15rpx;
  }
}
</style>
